//
//  Common.swift
//  HMWeibo
//
//  Created by wulei on 15/12/10.
//  Copyright © 2015年 wulei. All rights reserved.
//
// 提供全局共享属性和方法,类似于OC中的 PCH 文件
import UIKit

/// 全局外观渲染颜色
let wbAppearenceTintColor = UIColor.orangeColor()

// MARK: - 全局通知定义
let WBSwitchRootViewControllerNotification = "WBSwitchRootViewControllerNotification"

// MARK: - 选择图片通知
let WBStatusSelecetedPhotoNotification = "WBStatusSelecetedPhotoNotification"

// MARK: - 选中图片的key
let WBStatusSelecetedPhotoIndexPathKey = "WBStatusSelecetedPhotoIndexPathKey"
let WBStatusSelecetedPhotoURLsKey = "WBStatusSelecetedPhotoURLsKey"

// MARK: - 延迟在主线程上执行的函数
func delay(delta: Double, callFunc: () -> ()){
    
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delta * Double(NSEC_PER_SEC))),
            dispatch_get_main_queue()) {
                callFunc()
    }

}
